package com.leonzhangxf.ioc;

import lombok.Data;
import lombok.Setter;

import java.util.Set;

/**
 * @author leonzhangxf
 */
@Data
@Setter
public class DefaultBeanDefinition implements BeanDefinition {

    private String id;

    private Class<?> clazz;

    private Set<Class<?>> interfaces;

    private Set<Dependency> dependencies;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public Class<?> getType() {
        return clazz;
    }

    @Override
    public Set<Class<?>> getInterfaces() {
        return interfaces;
    }

    @Override
    public Set<Dependency> getDependencies() {
        return dependencies;
    }
}
